/*
 * @Author: sz
 * @Date: 2023-11-03 16:05:20
 * @LastEditors: sz
 * @LastEditTime: 2023-11-14 14:04:38
 * @Description: 控制台接口
 */
import { request } from '@/utils/request'
// 用户统计
export const userCount = () => {
  return request('admin/statistics/index/userCount', 'post', {
    data: {
      brand_id: process.env.VUE_APP_BRAND_ID
    }
  })
}
// 计划统计
export const repaymentCount = data => {
  return request('admin/statistics/index/repaymentCount', 'post', {
    data: {
      brand_id: process.env.VUE_APP_BRAND_ID,
      ...data
    }
  })
}
// 代还交易量统计
export const repaymentTurnover = () => {
  return request('admin/statistics/index/repaymentTurnover', 'post', {
    data: {
      brand_id: process.env.VUE_APP_BRAND_ID
    }
  })
}

// 快捷交易量统计
export const expressTurnover = ()=>{
  return request('admin/statistics/index/expressTurnover', 'post', {
    data:{
      brand_id: process.env.VUE_APP_BRAND_ID
    }
  });
};
// 提现统计
export const withdrawalTurnover =  ()=>{
  return request('admin/statistics/index/withdrawalTurnover', 'post', {
    data:{
      brand_id: process.env.VUE_APP_BRAND_ID
    }
  });

}
